/* eslint-disable semi */
/* eslint-disable semi */
/* eslint-disable quotes */
<template>
  <van-pull-refresh v-model="isLoading">
    <div class="TopList">
      <router-link to="/Setup">
        <van-icon class="Backlink" name="arrow-left" />
      </router-link>

      <div class="TopList-span">
        <span> 账户列表 </span>

      </div>

      <router-link to="/WithDrawal">
        <div class="getmoney" @click="getallmoney()"><span>去提现</span></div>
      </router-link>

    </div>

    <div class="shadow"> </div>

    <div class="Area-3">
      <div class="hello-1" v-for="(item, index) in middleimages" :key="index">
        <van-image class="hello-1-img" width="3.2rem" height="1.893rem" :src="item.imgSrc" />
        <p>很抱歉！查无账户</p>
      </div>

    </div>

    <div class="lastadd" @click="address()">

      <div class="lastadd-icon">
        <van-icon name="add-o" size="20" />
      </div>
      <div class="lastadd-span"><span> 添加账户</span> </div>

    </div>

    <div class="pendant">

      <div class="pendant-1 " :class="[pendant==1 ? 'add-hidden' :'red-hidden-2' ]" @click="conceal(1)">
        <van-icon name="arrow-left" color="#e3e3e3" size="22" />

      </div>
      <div class="pendant-2" :class="[pendant==0 ? 'add-hidden-2' :'red-hidden' ]">
        <router-link to="/">
          <div class="pendant-2-child">
            <van-icon name="wap-home-o" color="#e3e3e3" size="22" />
          </div>
        </router-link>
        <router-link to="/HamDivision">
          <div class="pendant-2-child">
            <van-icon name="contact" color="#e3e3e3" size="22" />
          </div>
        </router-link>
        <router-link to="/Setup">
          <div class="pendant-2-child">
            <van-icon name="setting-o" color="#e3e3e3" size="22" />
          </div>
        </router-link>
        <router-link to="/Withdraw ">
          <div class="pendant-2-child">
            <van-icon name="balance-o" color="#e3e3e3" size="22" />
          </div>
        </router-link>
        <div class="pendant-2-child" @click="addconcel(0)">
          <van-icon name="arrow" color="#e3e3e3" size="22" />
        </div>
      </div>

    </div>
  </van-pull-refresh>
</template>

<script>
import TabBar from "./TabBar.vue";
import https from "./https.js";
//引入封装好的js方法
import { _debounce, _throttle } from "./untils.js";

import { Dialog } from "vant";

//引入其他子组件
export default {
  components: {
    TabBar
  },
  // eslint-disable-next-line space-before-function-paren
  data() {
    return {
      count: 0,
      isLoading: false,
      index: 0,
      message: "",
      pendant: 0,
      bannerimages: [
        { id: 0, imgSrc: require("../assets/images/a16.jpg") }
        // { id: 1, imgSrc: require("../assets/images/a18.jpg") }
      ],
      middleimages: [{ id: 0, imgSrc: require("../assets/images/none.png") }]
    };
  },

  mounted() {
    // 上拉加载
  },
  // eslint-disable-next-line space-before-function-paren
  // created:vue生命周期中的钩子函数，在这个时间点，data中的数据已经注入到响应式系统中
  created() {},

  methods: {
    address() {
      this.$router.push({ path: "/AccountAdd" });
    },

    afterRead(file) {
      // 此时可以自行将文件上传至服务器
      console.log(file);
    },

    getallmoney() {
      Dialog.alert({
        title: "温馨提示",
        message: "您还未登录或登录状态失效，请登录后再来操作"
      }).then(() => {
        // this.$router.push({ path: "/WithDrawal" });
      });

      //this.$router.push({ path: "/WithDrawal" });
    },

    //弹出提示
    showNumber() {
      this.$toast({
        message: "字数不能超过200个"
      });
    },
    conceal(state) {
      this.pendant = state;
    },
    addconcel(state) {
      this.pendant = state;
    }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
/* //自定义.css的样式路径 */
/* @import "../css/HomePage.css"; */

* {
  padding: 0;
  margin: 0;
}
body {
  background-color: #f6f6f6;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  margin: 0;
  display: block;
}
div {
  display: block;
  box-sizing: border-box;
}
.shadow {
  height: 8px;
  width: 100%;
  background: #f6f6f6;
}

.TopList {
  display: flex;
  width: 100%;
  height: 50px;
  font-size: 20px;
  text-align: left;
  background: #ffffff;
  line-height: 50px;
}
.Backlink {
  margin-top: 15px;
  margin-left: 15px;
  color: #888;
}
.TopList-span {
  display: flex;
  height: 20px;
  margin-top: 0px;
  margin-left: 120px;
  font-size: 16px;
  width: 43%;
}
.getmoney {
  display: inline-block;
  margin: 0 -16px;
  padding: 0 16px;
  color: #1989fa;
  vertical-align: middle;
  font-size: 14px;
}

.hello-1 {
  width: 100%;
  height: 600px;
  background: #f6f6f6;
}
.hello-1 p {
  margin-top: 18px;
  font-size: 15px;
  color: #bbb;
}
.hello-1-img {
  margin-top: 35px;
  margin-left: 128px;
  border-radius: 10px;
  pointer-events: none;
}
.hello-1-details {
  width: 100%;
  height: auto;
}
.hello-1-details-img {
  border-radius: 10px;
  pointer-events: none;
}

.lastadd {
  position: fixed;
  bottom: 0px;
  background: #37cd87;
  width: 100%;
  height: 50px;
  color: #fff;
  line-height: 50px;
  font-size: 15px;
  display: flex;
}
.lastadd-icon {
  width: 20px;
  height: 30px;
  margin-top: 16px;
  margin-left: 150px;
  display: flex;
}
.lastadd-span {
  width: 80px;
  height: 30px;
  display: flex;
}

.pendant-1 {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: fixed;
  bottom: 24%;
  right: 0;
  z-index: 550;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
  padding-left: 8px;
}
.add-hidden {
  transform: translate(40px);
  transition: transform 1s ease 0s;
}
.add-hidden-2 {
  transform: translate(0px);
  transition: transform 1s ease 0s;
}
.pendant-2 {
  background: #7b7b7b;
  overflow: hidden;
  position: fixed;
  bottom: 24%;
  right: 0;
  z-index: 550;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
  justify-content: center;
  text-align: center;
  width: 40px;
  height: 200px;
  flex-flow: row wrap;
  right: -40px;
}

.red-hidden {
  transform: translate(-40px);
  transition: transform 1s ease 0s;
}
.red-hidden-2 {
  transform: translate(0px);
  transition: transform 1s ease 0s;
}

.pendant-2-child {
  flex: none;
  text-align: center;
  border-bottom: 0.1px solid #999;
  width: 25px;
  height: 40px;
  line-height: 40px;
  margin-left: 8px;
  padding-top: 8px;
}
</style>
